package sweet.toolbox.command

/** Print list of command names and it's summary line. */
class ListSummary(cmds: scala.collection.Map[String, Command]) extends Command{
  def summary = "List of all available commands with summary."
  def usage = "No argument is needed."
  def exec(args: Array[String]){
    println()
    for((name,cmd) <- cmds) printf("%-20s %s\n", name, cmd.summary)
  }
}

